import service from "@/utils/request";

export function getPostList(query: any) {
    return service({
        url: '/blog/browse',
        method: 'get',
        params: query
    })
}

export function getPostContent(id: any) {
    return service({
        url: '/blog/browse/' + id,
        method: 'get',
    })
}

export function getBloggerInfo() {
    return service({
        url: '/blog/configration/get_blog_info',
        method: 'get',
    })
}

export function getTagList() {
    return service({
        url: '/blog/tag',
        method: 'get',
    })
}

export function getCategoryList(){
    return service({
        url: '/blog/category',
        method: 'get',
    })
}